package com.lsu.app.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lsu.app.bean.Notice;
import com.lsu.app.service.NoticeService;
import com.lsu.app.mapper.NoticeMapper;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Set;

/**
 *
 * @description 针对表【notice(通知表)】的数据库操作Service实现
 * @Date 2023-10-25 18:02:19
 * @author hjj
 */
@Transactional
@Service
public class NoticeServiceImpl extends ServiceImpl<NoticeMapper, Notice> implements NoticeService{
    private final NoticeMapper mapper;

    public NoticeServiceImpl(NoticeMapper mapper) {
        this.mapper = mapper;
    }

    @Override
    public Set<Integer> getStudentIdsByCourseId(Integer courseId) {
        return mapper.getStudentIdsByCourseId(courseId);
    }
}




